package com.hb.trans.mvp.model

import com.basiclib.base.BaseModel
import com.hb.trans.api.EndPoints
import com.hb.trans.api.TRANS_SERVER_PATH
import com.hb.trans.bean.Base
import com.hb.trans.bean.Coach
import com.hb.trans.mvp.contract.CoachInfoContract
import io.reactivex.Observable
import javax.inject.Inject

class CoachInfoModel @Inject constructor(var api: EndPoints) : BaseModel(), CoachInfoContract.Model {
    override fun getCoachInfo(coanum: String): Observable<Base<Coach>> {
        return api.getCoachInfo("${TRANS_SERVER_PATH}coa/detail", coanum)
    }

}
